package com.wu.ssm.spring.ioc;

import com.wu.ssm.spring.aop.AopHelper;
import com.wu.ssm.spring.plugin.PluginHelper;
import com.wu.ssm.spring.utils.ClassUtil;

/**
 * Created by wzf on 2018/11/29/029.
 */
public class HelperLoader {

    /**
     * AopHelper必须在IocHelper之前，否则无法自动注入
     */
    public static void init(){
        Class<?> [] clazzList = {
                ClassHelper.class,
                BeanHelper.class,
                ActionHelper.class,
                AopHelper.class,
                IocHelper.class,
                PluginHelper.class,
        };
        for (Class<?> clazz:clazzList
             ) {
            ClassUtil.loadClass(clazz.getName());
        }
    }
}
